'use strict';
const uniPush = uniCloud.getPushManager({
	appId: "__UNI__EEB87D1"
})
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event)
	let obj = JSON.parse(event.body)
	//返回数据给客户端
	return await uniPush.sendMessage({
		"push_clientid": obj.cid, //填写上一步在uni-app客户端获取到的客户端推送标识push_clientid
		"title": obj.title,
		"content": obj.content,
		"payload": obj.payload,
		"force_notification": true
	})
};